package cn.bdqn.controller;

import cn.bdqn.model.Registry;
import cn.bdqn.service.RegistryService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 挂号单表(Registry)表控制层
 *
 * @author makejava
 * @since 2021-03-19 22:55:09
 */
@RestController
@RequestMapping("registry")
public class RegistryController {
    /**
     * 服务对象
     */
    @Resource
    private RegistryService registryService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public Registry selectOne(Long id) {
        return this.registryService.queryById(id);
    }


    public String registerInfoList(){
        return null;
    }



}
